CXX ?= g++
DEBUG ?= 1
ifeq ($(DEBUG), 1)
    CXXFLAGS += -g
else
    CXXFLAGS += -O2
endif

easylog: test_main.cpp queue.h log.cpp
	$(CXX) -o easylog  $^ $(CXXFLAGS) -lpthread

clean:
	rm  -r easylog
